# Makefile  

CC = gcc  
CFLAGS = -Wall -O2  
LIBS = -lssl -lcrypto  

TARGET = test  
SRCS = test.c sm3hash.c  
HEADERS = sm3hash.h  

all: $(TARGET)  

$(TARGET): $(SRCS) $(HEADERS)  
	$(CC) $(CFLAGS) -o $(TARGET) $(SRCS) $(LIBS)  

clean:  
	rm -f $(TARGET)
